<?php
/*
echo '<pre>';
print_r($_POST);
echo '</pre>';

echo '<pre>';
print_r($_GET);
echo '</pre>';
*/
/**
 * Routes configuration
 *
 * In this file, you set up routes to your controllers and their actions.
 * Routes are very important mechanism that allows you to freely connect
 * different urls to chosen controllers and their actions (functions).
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.Config
 * @since         CakePHP(tm) v 0.2.9
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
/**
 * Here, we are connecting '/' (base path) to controller called 'Pages',
 * its action called 'display', and we pass a param to select the view file
 * to use (in this case, /app/View/Pages/home.ctp)...
 */
/*
if(isset($_POST)){

				$_SESSION['usuario_id']=1;//$_POST['usuario_id'];
				$_SESSION['tipo_usuario']=$_POST['tipo_usuario'];
				$_SESSION['sesion_id']=$_POST['sesion_id'];
				$_SESSION['nombre_usuario']=$_POST['nombre_usuario'];
				$_SESSION['cedula_usuario']=$_POST['cedula_usuario'];
				$_SESSION['tlf_usuario']=$_POST['tlf_usuario'];
				$_SESSION['username']=$_POST['username'];
				$_SESSION['hora_acceso']=$_POST['hora_acceso'];
				$_SESSION['Autenticado']=$_POST['Autenticado'];
				$_SESSION['tienda_id']=$_POST['tienda_id'];
				$_SESSION['nombre_tienda']=$_POST['nombre_tienda'];
				$_SESSION['es_central']=$_POST['es_central'];

				$_SESSION['Config']['userAgent']=$_POST['Config_userAgent'];
				$_SESSION['Config']['time']=$_POST['Config_time'];
				$_SESSION['Config']['countdown']=$_POST['Config_countdown'];
*/
//Router::connect('/', array('controller' => 'Tp', 'action' => 'index', 'index'));
//Router::connect('/Tp/*', array('controller' => 'Tp', 'action' => 'index2'));

//}else{
Router::connect('/', array('controller' => 'Login', 'action' => 'index2', 'index2'));
Router::connect('/Login/*', array('controller' => 'Login', 'action' => 'index2'));
//}


/**
 * Load all plugin routes.  See the CakePlugin documentation on
 * how to customize the loading of plugin routes.
 */
	CakePlugin::routes();

/**
 * Load the CakePHP default routes. Only remove this if you do not want to use
 * the built-in default routes.
 */
	require CAKE . 'Config' . DS . 'routes.php';
